package cn.aitrox.ry.service.auth.api;

import cn.aitrox.ry.bean.RespResult;
import cn.aitrox.ry.service.auth.dto.user.role.in.AuthUserRoleUpdateInDto;
import cn.aitrox.ry.service.auth.dto.user.role.out.AuthUserRoleDetailDto;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;

public interface AuthUserRoleApi {

    @PutMapping(value = "/auth/user/role")
    RespResult update(@RequestBody AuthUserRoleUpdateInDto input);

    @GetMapping(value = "/auth/user/role/{userId}")
    RespResult<AuthUserRoleDetailDto> read(@PathVariable("userId") Integer userId);

}
